Skip to main content

Get Contract

Get Contract​

in case you want to get previously created contract by contract id, you can use the following endpoint

Endpoint GET {{baseUrl}}/apps/api/contracts/CNT-2601-00100002 Curl:

```bash
curl -X 'GET' \
'{{baseUrl}}/apps/api/contracts/CNT-2601-00100002' \
-H 'accept: application/json'

Response

{
"data": {
"contractId": "CNT-2601-00100002",
"reference": "12321",
"title": "Sell a property111",
"description": "Extenal Iphone mobile",
"notes": "notes for mobile",
"status": "pending",
"contractServiceType": "product",
"buyerParty": {
"platformRefId": "USR_123",
"firstName": "Buyer",
"lastName": "Name aa",
"phoneNumber": "966583944460"
},
"sellerParty": {
"platformRefId": "USR_456",
"firstName": "Seller",
"lastName": "",
"phoneNumber": "966583944461"
},
"businessName": "new 555",
"createdDate": "2026-01-24T17:48:58.64975+01:00",
"metaData": {
"metadata1": "1",
"metadata2": "2",
"metadata3": "",
"metadata4": ""
},
"milestones": [
{
"Id": 12,
"Name": "milestone 1 name",
"Description": "milestone 1 description",
"DueDate": "2026-12-20T10:00:00.000Z",
"Amount": 686.25,
"PricingLineItems": [
{
"lineType": "contractAmount",
"role": "buyer",
"amount": 600,
"description": null,
"order": 1
},
{
"lineType": "escrowFee",
"role": "thirdParty",
"amount": 15.0,
"description": null,
"order": 2
},
{
"lineType": "escrowFeeTax",
"role": "thirdParty",
"amount": 2.25,
"description": null,
"order": 3
},
{
"lineType": "externalPlatformFee",
"role": "buyer",
"amount": 60.00,
"description": null,
"order": 4
},
{
"lineType": "externalPlatformFeeTax",
"role": "buyer",
"amount": 9.00,
"description": null,
"order": 5
},
{
"lineType": "netEscrowAmountToSeller",
"role": "seller",
"amount": 600,
"description": null,
"order": 6
}
]
},
{
"Id": 13,
"Name": "milestone 2 name",
"Description": "milestone 2 description",
"DueDate": "2026-12-31T09:35:30.369Z",
"Amount": 457.5,
"PricingLineItems": [
{
"lineType": "contractAmount",
"role": "buyer",
"amount": 400,
"description": null,
"order": 1
},
{
"lineType": "escrowFee",
"role": "thirdParty",
"amount": 10.00,
"description": null,
"order": 2
},
{
"lineType": "escrowFeeTax",
"role": "thirdParty",
"amount": 1.50,
"description": null,
"order": 3
},
{
"lineType": "externalPlatformFee",
"role": "buyer",
"amount": 40.00,
"description": null,
"order": 4
},
{
"lineType": "externalPlatformFeeTax",
"role": "buyer",
"amount": 6.00,
"description": null,
"order": 5
},
{
"lineType": "netEscrowAmountToSeller",
"role": "seller",
"amount": 400,
"description": null,
"order": 6
}
]
}
],
"pricingLineItems": [
{
"lineType": "contractAmount",
"role": "buyer",
"amount": 1000,
"description": null,
"order": 1
},
{
"lineType": "escrowFee",
"role": "thirdParty",
"amount": 25.0,
"description": null,
"order": 2
},
{
"lineType": "escrowFeeTax",
"role": "thirdParty",
"amount": 3.75,
"description": null,
"order": 3
},
{
"lineType": "externalPlatformFee",
"role": "buyer",
"amount": 100.0,
"description": null,
"order": 4
},
{
"lineType": "externalPlatformFeeTax",
"role": "buyer",
"amount": 15.0,
"description": null,
"order": 5
},
{
"lineType": "netEscrowAmountToSeller",
"role": "seller",
"amount": 1000,
"description": null,
"order": 6
}
],
"transactions": []
},
"message": "ContractRetrievedSuccessfully",
"status": 200,
"validationErrors": []
}

Response Fields Description Result<GetContractResponse>

Field NameTypeDescriptionRequired / Notes / Example
succeededbooleanIndicates whether the request was successfulRequired
messagestringResponse messageOptional
errorsarray of stringErrors if the request failedOptional
dataobject (GetContractResponse)Contract detailsOptional

GetContractResponse

Field NameTypeDescriptionRequired / Notes / Example
idstring (GUID)Contract identifierRequired
titlestringContract titleRequired
descriptionstringContract descriptionOptional
notesstringAdditional notesOptional
amountnumberTotal contract amountRequired
statusstring (ContractStatus)Current contract statusRequired
contractServiceTypestring (ContractServiceType)Contract service typeRequired
referencestringExternal referenceOptional
buyerPartyobject (ExternalContractParty)Buyer party detailsRequired
sellerPartyobject (ExternalContractParty)Seller party detailsRequired
metaDataobject (ContractMetaData)Custom metadataOptional
milestonesarray of ContractMilestoneResponseContract milestonesRequired
pricingLineItemsarray of PricingLineItemResponsePricing breakdownRequired
createdDatestring (date-time) (UTC)Contract creation date (UTC)Required
updatedDatestring (date-time) (UTC)Last update date (UTC)Required

ExternalContractParty

Field NameTypeDescriptionRequired / Notes / Example
platformRefIdstringUser identifier in wepayRequired
firstNamestringFirst nameRequired
lastNamestringLast nameOptional
phoneNumberstringPhone number with country codeRequired

ContractMetaData

Field NameTypeDescriptionRequired / Notes / Example
metadata1stringCustom metadataOptional
metadata2stringCustom metadataOptional
metadata3stringCustom metadataOptional
metadata4stringCustom metadataOptional

ContractMilestoneResponse

Field NameTypeDescriptionRequired / Notes / Example
idstring (GUID)Milestone identifierRequired
namestringMilestone nameRequired
descriptionstringMilestone descriptionOptional
amountnumberMilestone amountRequired
statusstringMilestone statusRequired
dueDatestring (date-time (UTC))Milestone due dateRequired
pricingLineItemsarray of PricingLineItemResponsePricing breakdownRequired

PricingLineItemResponse

Field NameTypeDescriptionRequired / Notes / Example
idstring (GUID)Pricing line identifierRequired
lineTypestringPricing line typeRequired
rolestringParty responsible for the feeRequired
amountnumberAmount valueRequired
descriptionstringPricing line descriptionOptional
orderintegerDisplay orderRequired

HTTP Status Codes

Status CodeDescription
200Contract retrieved successfully
404Contract not found
400Invalid contract ID
401Unauthorized
500Internal server error